<template>
  <div class="app-container">
    <div v-if="user">
      <el-row :gutter="20">
        <el-col :span="6" :xs="24">
          <project-card :user="user" />
        </el-col>

        <el-col :span="18" :xs="24">
          <el-card>
            <el-tabs v-model="activeTab">
              <!-- <el-tab-pane label="项目动态" name="activity">
                <activity />
              </el-tab-pane> -->
              <el-tab-pane label="设备列表" name="life">
                <device />
              </el-tab-pane>
              <!-- <el-tab-pane label="时间线" name="timeline">
                <timeline />
              </el-tab-pane>
              <el-tab-pane label="问题记录" name="question">
                <question />
              </el-tab-pane> -->
              <el-tab-pane label="报警统计" name="warning">
                <warning />
              </el-tab-pane>
              <!-- <el-tab-pane label="相关附件" name="files">
                <files />
              </el-tab-pane> -->
            </el-tabs>
          </el-card>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
  import ProjectCard from './components/ProjectCard'
  import Activity from './components/Activity'
  import Timeline from './components/Timeline'
  import Warning from './components/Warning'
  import Question from './components/Question'
  import Device from './components/Device'
  import Files from './components/Files'

  export default {
    name: 'Profile',
    components: { ProjectCard, Activity, Timeline, Warning, Question, Device, Files },
    data() {
      return {
        costNumber: '',
        id: this.$route.query.id,
        user: {},
        activeTab: 'life',
      }
    },
    created() {},
    methods: {},
  }
</script>
